package wqh.service;

import java.util.List;

/**
 * Created by devts on 2017/1/3.
 */
public interface Service<T> {

    public void save(T entity);

    public void update(T entity);

    public void delete(T entity);

    public void deleteAll();

    public List<T> findAll();

    public T findById(Long id);


}
